import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SRobCityEndReward
    
    export  class SRobCityEndReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRobCityEndReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.sEntityId.__write(arg1);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.copyType);
            arg1.writeInt(this.contribution);
            arg1.writeInt(this.experience);
            arg1.writeInt(this.giftBag);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.sEntityId = new SEntityId();
            this.sEntityId.__read(arg1);
            this.guildName = arg1.readString();
            this.copyType = arg1.readInt();
            this.contribution = arg1.readInt();
            this.experience = arg1.readInt();
            this.giftBag = arg1.readInt();
            return;
        }

        public /* const */_type: int=756;

        public /* var */sEntityId: SEntityId;

        public /* var */guildName: string;

        public /* var */copyType: int;

        public /* var */contribution: int;

        public /* var */experience: int;

        public /* var */giftBag: int;

        public static /* var */_regist: SRobCityEndReward;
    }

            SRobCityEndReward._regist = new SRobCityEndReward(true);
        